//
//  MyDocument.h
//  MapEdit
//
//  Created by Steven Canfield on 7/06/07.
//  Copyright __MyCompanyName__ 2007 . All rights reserved.
//


#import <Cocoa/Cocoa.h>
#import "MPQKit/MPQKit.h"
#import "CHKFile.h"
#import "ColorPalette.h"
#import "TileLoader.h"
#import "Sprite.h"
#import "MiniMapView.h"
#import "MapView.h"
#import "DATManager.h"
#import "PlayerSettingController.h"
#import "NSArrayAdditions.h"
#import "StringManager.h"
#import "LocationList.h"
#import "TriggerManager.h"
#import "OpenGLMapView.h"

@interface SCMDocument : NSDocument
{
	IBOutlet MapView * view;
	IBOutlet MiniMapView * miniMapView;
	IBOutlet OpenGLMapView * fastView;
	IBOutlet NSScrollView *	 scrollView;
	CHKFile		* _chkFile;
	MPQArchive	* _archive;
	
	/* Tileset Storage */
	TilePieceList * _pieceList;
	TileList	  * _tileList;
	TileGroupList * _groupList;
	ColorPalette  * _palette;
	
	/* Chunk Controllers */
	TileMap				*	_map;
	chk_dim_t				_dimensions;
	NSString			*	_tilesetName;
	UnitList			*	_unitList;
	DoodadList			*	_doodadList;
	DoodadUnitList		*	_doodadUnitList;
	FileInfoManager		*	_fileInfoManager;
	IBOutlet PlayerSettingController * _playerSettingController;
	StringManager		*	_stringManager;
	LocationList		*	_locationList;
	TriggerManager		*	_triggerManager;
}
- (void)loadTilesetData:(NSString *)tilesetName;
- (void)loadFileHeader;
@end
